﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MemberRelation.aspx.cs" Inherits="User_MemberRelation" %>

<%@ Register Src="../UserControl/MenuControl.ascx" TagName="menu" TagPrefix="UC" %>
<%@ Register Src="../UserControl/Top.ascx" TagName="top" TagPrefix="UC" %>
<%@ Register Src="../UserControl/foot.ascx" TagName="footer" TagPrefix="UC" %>
<%@ Import Namespace="BLL.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>个人简介添加</title>
    <link type="text/css" href="../Styles/Style.css" rel="stylesheet" />
    <script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
    <link type="text/css" href="../Scripts/UIModule/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="../Scripts/UIModule/jquery-ui-1.8.16.custom.min.js"></script>
    <script type="text/javascript" src="../Scripts/editor/kindeditor.js"></script>
    <script language="javascript" type="text/javascript">
        $(function () {
            KindEditor.ready(function (K) {
                var options = {
                    cssPath: '/css/index.css',
                    items: ['source', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'preview'],
                    filterMode: true,
                    uploadJson: '../Scripts/editor/asp.net/upload_json.ashx',
                    fileManagerJson: '../Scripts/editor/asp.net/file_manager_json.ashx'
                };
                window.editor = K.create('#content', options);
            });
            setTimeout(controlARSDiv, 5000);
        }
        );
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input runat="server" type="hidden" id="paperIdHidden" />
    <div>
        <UC:top ID="top" runat="server"></UC:top>
        <UC:menu ID="menu" runat="server"></UC:menu>
        <div class="page_right" id="pright">
            <div class="page" id="pall">
                <div class="right_top">
                    <div class="ltitle">
                        <ul class="right_top_down">
                            <li class="dtitle"><span class="iconE"></span><font><b>您当前的位置:</b> 首页>>建立关联关系</font>
                            </li>
                        </ul>
                    </div>
                </div>
                <!--right middle-->
                <div class="right_middle">
                    <div class="right_pannel">
                        <div class="right_box">
                            <div class="box_title">
                                <b>关联关系添加区域 </b><asp:Label ID="errorId" runat="server" Visible="false" ForeColor="Red"></asp:Label>
                            </div>
                            <table class="usertb">
                                <tr>
                                    <td class="lctext" style="width: 8%">
                                        自强会员
                                    </td>
                                    <td align="left" style="margin-left: 0px; padding-left: 0px;">
                                        &nbsp;<asp:DropDownList ID="NomalUserDownList" runat="server" Width="200px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lctext" style="width: 8%">
                                        天使会员
                                    </td>
                                    <td align="left" style="margin-left: 0px; padding-left: 0px;">
                                        &nbsp;<asp:DropDownList ID="AngelUserDownList" runat="server" Width="200px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lctext">
                                        说明
                                    </td>
                                    <td>
                                        <textarea id="content" cols="10" rows="2" name="content" style="width: 100%; height: 100px;"
                                            runat="server"></textarea>
                                    </td>
                                </tr>
                                <tr style="width: 100%;">
                                    <td>
                                    </td>
                                    <td height="15" align="right" style="width: 1000px;">
                                        <input type="reset" name="Submit" value="重置" />
                                        &nbsp; &nbsp; &nbsp;
                                        <asp:Button ID="SubmitButton" runat="server" Text="建立关联" 
                                            onclick="SubmitButton_Click" />
                                        <%-- <asp:Button ID="UpdateButton" runat="server" Text="更新" Visible="false" OnClick="UpdateButton_Click" />--%>
                                    </td>
                                </tr>
                            </table>
                            <div class="box_title">
                                <b>关联关系记录 </b>
                            </div>
                            <div>
                                <asp:DataGrid ID="RelationInfoDataGrid" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    Height="1px" Width="97%" GridLines="Both" ForeColor="#000000" Font-Bold="False"
                                    Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                                    PageSize="5" HeaderStyle-Wrap="false" ItemStyle-Wrap="false" 
                                    ondeletecommand="RelationInfoDataGrid_DeleteCommand" 
                                    onpageindexchanged="RelationInfoDataGrid_PageIndexChanged">
                                    <Columns>
                                        <%----%>
                                        <asp:BoundColumn DataField="UserRelationId" HeaderText="编号" Visible="false"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="NomalUserName" HeaderText="自强会员"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="AngelUserName" HeaderText="天使会员"></asp:BoundColumn>
                                        <%--<asp:BoundColumn DataField="Text" HeaderText="说明" ReadOnly="True"></asp:BoundColumn>--%>
                                        <asp:BoundColumn DataField="DateCreated" HeaderText="创建时间" ReadOnly="True"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="NormalUserPassportId" HeaderText="自强会员ID" Visible="false"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="AngelUserPassportId" HeaderText="天使会员ID" Visible="false"></asp:BoundColumn>
                                        <%--<asp:HyperLinkColumn Target="_self" DataTextFormatString="查看" DataTextField="PaperId"
                                            DataNavigateUrlField="PaperId" DataNavigateUrlFormatString="./PersonaInfo.aspx?UID={0}"
                                            HeaderText="查看" />--%>
                                        <asp:ButtonColumn CommandName="Delete" HeaderText="删除" Text="删除"></asp:ButtonColumn>
                                    </Columns>
                                    <HeaderStyle Font-Bold="True" BackColor="#507CD1" ForeColor="White" />
                                    <PagerStyle NextPageText="下一页" PrevPageText="上一页" BackColor="InactiveCaptionText"
                                        ForeColor="Black" HorizontalAlign="Right" Font-Size="Larger" PageButtonCount="2" />
                                    <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                                    <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <EditItemStyle BackColor="#2461BF" />
                                    <AlternatingItemStyle BackColor="White" />
                                    <ItemStyle BackColor="#EFF3FB" />
                                </asp:DataGrid>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
